/*****************************************************************************
/ Avaliable commands
/----------------------------------------------------------------------------*/
/* It is assumed that SOM and EOM values do not occurin the message */
#define SOM  0xFD /* start of message */
#define EOM  0xFE /* end of message */
#define RCLK 0xC0 /* readclock */
#define SCLK 0XC1 /* set clock*/
#define RTL  0XC2 /* read temperature and luminosity */
#define RPAR 0XC3 /* read parameters */
#define MPMN 0XC4 /* modify monitoring period */
#define MTIN 0XC5 /* modify inactivity time */
#define RALA 0XC6 /* read alarms (clock, temp., luminosity, active/inactive) */
#define DALA 0XC7 /* define alarm clock*/
#define DALT 0XC8 /* define alarm temperature */
#define DALL 0XC9 /* define alarm luminosity */
#define AALA 0XCA /* activate/deactivate alarms */
#define IREG 0XCB /* information about registers (NREG, nr, iread, iwrite)*/
#define TRGC 0XCC /* transfer registers (curr. position)*/
#define TRGI 0XCD /* transfer registers (index) */

#define CMD_OK       0 /* command successful */
#define CMD_ERROR 0xFF /* error in command */

/* Functions to perform request actions */

void readClock(int *h, int *m, int *s) {
	char message[3];

	message[0] = SOM;
	message[1] = RCLK;
	message[2] = EOM;

}

void setClock(char args[]){
	char message[5];

	message[0] = SOM;
	message[1] = SCLK;
	message[2] = args[0];
	message[3] = args[1];
	message[4] = args[2];
	message[5] = EOM;

}